/**
 * 弹出窗口
 * 
 * @param url 窗口访问地址
 */
function openModal(url) {
	var random = Math.floor(Math.random()*100);
	var popId = "viewWindw_" + random;
	var templet = '<div id="' + popId +'" class="modal inmodal" aria-hidden="true" aria-labelledby="' + popId + 'Label' +'">'
	+ '<div class="modal-dialog">'
	+ '<div class="modal-content animated bounceInRight">'
	+ '<div class="modal-body"></div>'
	+ '</div></div></div>';
	$(document.body).append(templet);
	
	var w = "#" + popId;
	
	$(w).modal({
		remote : url
	});

	$(w).on("hidden.bs.modal", function() {
		$(this).removeData("bs.modal");
		$(w).find("div.modal-content").html("");
		$(w).remove();
	});
	
	return w;
}
/**
 * 提示框
 */
toastr.options = {
    closeButton: true,
    progressBar: true,
    showMethod: 'slideDown',
    timeOut: 4000
};
